/* eslint-disable */
const cxtmenu = require('./cxtmenu');

// registers the extension on a cytoscape lib ref
const register = function (cytoscape) {
  if (!cytoscape) { return; } // can't register if cytoscape unspecified

  cytoscape('core', 'cxtmenu', cxtmenu); // register with cytoscape.js
};

if (typeof cytoscape !== 'undefined') { // expose to global cytoscape (i.e. window.cytoscape)
  register(cytoscape);
}

module.exports = register;
